<template>
  <div class="container">
    <div class="container-title">
      今日专业
      <div class="more" @click="toLink('/major')">查看更多></div>
    </div>
    <div class="nav">
      <div v-for="item in list" :key="item.name" class="cell">
        {{ item.name }}
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { navList } from './data'
import { useRouter } from 'vue-router'
const router = useRouter();
const list = ref<any>(navList)
const toLink = (url) => {
  router.push(url)
}

</script>

<style lang="less" scoped>
@import "./index.less";
</style>
